// filepath: /home/wf/codings/simu-board/include/GUI/CardGroup.hpp
#ifndef SIMUBOARD_CARDGROUP_HPP
#define SIMUBOARD_CARDGROUP_HPP

#include <FL/Fl_Group.H>
#include <GUI/Theme.hpp>

// 统一风格的卡片式分组容器：白底、圆角、左上角标题
class CardGroup : public Fl_Group
{
public:
    CardGroup(int X, int Y, int W, int H, const char* L = nullptr);
    void set_theme(const GUI::Theme& t);

protected:
    void draw() override; // 自定义绘制以增加标题边距
};

#endif // SIMUBOARD_CARDGROUP_HPP
